<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="outboundWarehouseClick()" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">备料出库</button>
                <button class="layui-btn" ng-click="outboundConfirmClick()" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">备料确认</button>
                <button class="layui-btn" ng-click="cancelTaskClick()" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">任务取消</button>
                <button class="layui-btn" ng-click="quitTaskClick()" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">备料退库</button>
                <button class="layui-btn" ng-click="outConfirmClick()" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">出库确认</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="车架号-->回车查询" class="search-input" ng-model="search.otVin" ng-keydown="searchListKeyDown($event)" />
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText"></button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh" ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>备料单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.otPreparationMaterialNo"/>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>车型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.vehicleSpec">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wndVehicleName"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="vehicleSpec in (dropDownList.vehicleSpec | filter: $select.search)">
                                    <span ng-bind="vehicleSpec.wndVehicleName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>装车道</div>
                        <div>
                            <ui-select ng-model="dropDownDefaults.otEstimateLane">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.elName"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="otEstimateLane in dropDownLists.otEstimateLane">
                                    <span ng-bind="otEstimateLane.elName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.status">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="status in (dropDownList.status | filter: $select.search) track by status.value">
                                    <span ng-bind="status.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>创建时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.startCreateTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endCreateTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>备料确认时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.startBlConfirmTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endBlConfirmTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem">
                        <div>是否退库</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.quitTask">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="quitTask in (dropDownList.quitTask | filter: $select.search) track by quitTask.value">
                                    <span ng-bind="quitTask.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>备料司机</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.driver">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="driver in (dropDownList.driver | filter: $select.search)">
                                    <span ng-bind="driver.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table serial minScreen warehouseTable" style="width : 1920px;">
                <tbody>
                    <tr>
                        <th>
                            <input type="checkbox" name="allChoose" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>备料任务号</th>
                        <th>备料单号</th>
                        <th>创建时间</th>
                        <th>车架号(VIN码)</th>
                        <th>车型</th>
                        <th>库区</th>
                        <th>库位</th>
                        <th>装车道</th>
                        <th>状态</th>
                        <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">是否退库</th>
                        <th>备料司机</th>
                        <th>任务开始时间</th>
                        <th>任务完成时间</th>
                        <th>备料确认时间</th>
                    </tr>
                    <tr ng-repeat="warehouse in warehouseList" ng-click="Tools.initTableClick($event)">
                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="warehouse.otTaskNo"></td>
                        <td ng-bind="warehouse.otPreparationMaterialNo"></td>
                        <td ng-bind="warehouse.gmtCreate"></td>
                        <td ng-bind="warehouse.otVin"></td>
                        <td ng-bind="warehouse.otVehicleSpecName"></td>
                        <td ng-bind="warehouse.otZoneName"></td>
                        <td ng-bind="warehouse.otLocationCode"></td>
                        <td ng-bind="warehouse.otEstimateLane"></td>
                        <td ng-bind="warehouse.otStatus | warehouseFilter"></td>
                        <td ng-bind="warehouse.a1 | quitTaskFilter" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1"></td>
                        <td ng-bind="warehouse.otDriver"></td>
                        <td ng-bind="warehouse.otTaskStartTime"></td>
                        <td ng-bind="warehouse.otTaskEndTime"></td>
                        <td ng-bind="warehouse.otBlConfirmTime"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>